/**
 * Domain class: Project
 *
 * @author    Dmitry Ustimov
 * @date      March 2012
 *
 */
package com.gr

class Project {

	String title
	String email
	Date startDate
	Division divisionTo

	static hasMany = [ persons : Person ]

	static constraints = {
		title(size: 2..50, blank: false, unique: true)
		email(email: true, nullable: true)
		startDate(nullable: true)
		divisionTo(blank: false)
	}

	String toString() {
		return "Project: ${title}"
	}
}
